//
//  MasonryView.m
//  lvfj
//
//  Created by lvfeijun on 2022/4/21.
//  Copyright © 2022 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import "MasonryView.h"

@implementation MasonryView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)masonryView
{
    [self.scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.equalTo(self);
    }];
    // 参考  UIComparisonToolView
    [self.imgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(self);
//        make.left.right.equalTo(self.scrollView); 这样写会把宽度撑得很大  bug
        
        make.top.equalTo(self.scrollView);
//        make.top.equalTo(self); //这样写永远都会在顶部，滑动变得没有意义
    }];
    
    // 参考  UIComparisonToolView
    self.imgV.alpha = 0.3;
//    NSInteger alpha = 30
//    self.imgV.alpha = alpha/100;imgV失去响应者 存疑
    
    //参考课表
    如果试图在最上面仍然不触发，那就再add一遍
    fontFromSuperView 也没有用的情况下
}

@end
